package utils

import (
	"math/rand"
	"time"
)

func init() {
	rand.Seed(time.Now().UTC().UnixNano())
}

func IsInRange(flag float64) bool {
	a := rand.Intn(1000000)
	b := int(flag * 1000000)
	if a < b {
		return true
	}
	return false
}
